package com.yongan.purchase.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.purchase.entity.Purchase;

public interface PurchaseDao {
	
	Purchase queryById(String purchaseId);
	
	List<Purchase> queryAll(@Param("offset")int offset,@Param("limit")int limit);
	
	int insertPurchase(Purchase purchase);
	
	int deletePurchase(String purchaseId);
	
	int updatePurchase(Purchase purchase);
	
	int queryCount();
	
	int isChecked(@Param("purchaseId")String purchaseId,@Param("value")String value);
	
	List<Purchase> queryPurchaseTree();
}
